﻿using PLCS.Application.Contracts.HisOrderApp.Dtos;
using Prism.Commands;
using Prism.Mvvm;

namespace PLCS.App.OrderTask.Dtos;

internal class HisOrderVIewDto : BindableBase
{
    private bool _isExpanded;

    public bool IsExpanded
    {
        get { return _isExpanded; }
        set { SetProperty(ref _isExpanded, value); }
    }

    public HisOrderDto Model { get; set; }

    public DelegateCommand<HisOrderVIewDto> ExpandedCommand => new DelegateCommand<HisOrderVIewDto>(model =>
    {
        model.IsExpanded = !model.IsExpanded;
    });

    public HisOrderVIewDto()
    {
    }
}